<?php if (!defined('APP')) die('error'); ?>
<!doctype html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>机器号管理</title>
</head>
<style>
    table{border-collapse: collapse;}
</style>
<body>
<form action="./machine.php" method="GET">
    <table width="350" border="1">
        <tr>
            <th>ID</th>
            <th>编号</th>
        </tr>
        <?php
        if (!empty($machine)) { ?>
            <?php foreach ($machine as $row){?>
                <tr>
                    <td><input type="text" style="border: 0" value="<?php echo $row['idmachine'];?>"></td>
                    <td><input type="text" style="border: 0" value="<?php echo $row['machine_number'];?>"></td>
                </tr>
            <?php } ?>
        <?php } ?>
    </table>
</form>
</body>
</html>
